<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>结构分区和文本分区</title>
		<style>
			.box1 {
				width: 300px;
				height: 180px;
				/* 背景颜色 */
				background-color: pink;
				/* 转换为行内 */
				display: inline;
			}
			.box2 {
				width: 1000px;
				height: 100px;
				background-color: orange;
				display: inline;
			}
			h1 {
				width: 150px;
				height: 150px;
				background-color: lightblue;
			}
			/* 给p、ul、strong、em设置宽高背景 */
			p {
				width: 100px;
				height: 100px;
				background-color: lightgreen;
				/* 行内块 */
				display: inline-block;
			}
			ul {
				width: 120px;
				height: 100px;
				background-color: lightcoral;
				display: inline-block;
			}
			strong {
				width: 130px;
				height: 100px;
				background-color: red;
				/* 转为块状 */
				display: block;
			}
			em {
				width: 140px;
				height: 100px;
				background-color: purple;
				display: block;
			}
			.text {
				width: 200px;
				height: 40px;
				background-color: lightsalmon;
			}
			.btn {
				width: 50px;
				height: 40px;
				background-color: green;
			}
		</style>
	</head>
	<body>
		<div class="box1">123</div>
		<!-- 创建一个div，大小为1000*100 -->
		<div class="box2">456</div>
		<h1>标题1</h1>
		<p>段落</p>
		<ul>
			<li>列表项</li>
		</ul>
		<strong>加粗的</strong>
		<em>倾斜的</em>
		<s>删除</s>
		<u>下划线</u>
		<span>行内分区</span>
		<ol>
			<li>111</li>
			<li>222</li>
		</ol>
		<input type="text" class="text">
		<input type="submit" class="btn">
		<strong>加粗</strong>
	</body>
</html>